home *** CD-ROM | disk | FTP | other *** search
- global globalData
-
- on checkInitGlobalData
- if voidp(globalData) = 1 then
- set globalData to [:]
- end if
- end
-
- on SetGlobal newProp, newData
- checkInitGlobalData()
- setaProp(globalData, newProp, newData)
- end
-
- on GetGlobal newProp
- checkInitGlobalData()
- set currValue to getaProp(globalData, newProp)
- return currValue
- end
-
- on DeleteGlobal newProp
- checkInitGlobalData()
- set currValue to getaProp(globalData, newProp)
- if not voidp(currValue) then
- deleteProp(globalData, newProp)
- end if
- end
-